package lab03.test05;

import java.io.*;
import java.util.Scanner;

/**
 * Created by dell on 2017/12/28.
 */
public class Test05 {
    public static void main(String[] args) {
        BufferedWriter bufferedWriter = null;
        BufferedReader bufferedReader = null;

        try {
            try {
                bufferedWriter = new BufferedWriter(new FileWriter("D:\\test.txt"));
            } catch (IOException e) {
                e.printStackTrace();
            }
            Scanner scanner = new Scanner(System.in);
            String s = scanner.nextLine();
            char[] soure = new char[10];
            char[] target = new char[10];
            soure = s.toCharArray();
            for (int i = 0; i < soure.length; i++) {
                soure[i] = (char) (soure[i] + 1);
                bufferedWriter.write(soure[i]);
            }

            bufferedWriter.newLine();
            bufferedWriter.close();

            bufferedReader = new BufferedReader(new FileReader("D:\\test.txt"));
            String line = null;
            while ((line = bufferedReader.readLine()) != null) {
                target = line.toCharArray();
                for (int i = 0; i < target.length; i++) {
                    target[i] = (char) (target[i] - 1);
                }
                System.out.println(target);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                bufferedReader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }
}
